package com.kayt.cyberBar.message.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the b_message_notice database table.
 * 
 */
@Entity
@Table(name="b_message_notice")
@NamedQuery(name="BMessageNotice.findAll", query="SELECT b FROM BMessageNotice b")
public class BMessageNotice implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String stepId;
	private String cyberCode;
	private String fromCode;
	private String fromName;
	private String sendTime;
	private String statusCode;
	private String title;
	private String toCode;
	private String toName;
	private String typeCode;
	private String dealStatus;
	private String updateTime;
	private String examCode;
	private BMessageNoticeDetail detail;

	public BMessageNotice() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="STEP_ID")
	public String getStepId() {
		return stepId;
	}


	public void setStepId(String stepId) {
		this.stepId = stepId;
	}


	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return this.cyberCode;
	}

	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}

	@Column(name="EXAM_CODE")
	public String getExamCode() {
		return examCode;
	}


	public void setExamCode(String examCode) {
		this.examCode = examCode;
	}


	@Column(name="FROM_CODE")
	public String getFromCode() {
		return this.fromCode;
	}

	public void setFromCode(String fromCode) {
		this.fromCode = fromCode;
	}


	@Column(name="FROM_NAME")
	public String getFromName() {
		return this.fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}


	@Column(name="SEND_TIME")
	public String getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name="DEAL_STATUS")
	public String getDealStatus() {
		return dealStatus;
	}


	public void setDealStatus(String dealStatus) {
		this.dealStatus = dealStatus;
	}


	@Column(name="TO_CODE")
	public String getToCode() {
		return this.toCode;
	}

	public void setToCode(String toCode) {
		this.toCode = toCode;
	}


	@Column(name="TO_NAME")
	public String getToName() {
		return this.toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}


	@Column(name="TYPE_CODE")
	public String getTypeCode() {
		return this.typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToOne(targetEntity = BMessageNoticeDetail.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	@JoinColumn(name="CODE", referencedColumnName="MSG_CODE", nullable = false, insertable=false, updatable=false)
	public BMessageNoticeDetail getDetail() {
		return detail;
	}


	public void setDetail(BMessageNoticeDetail detail) {
		this.detail = detail;
	}
	
	

}